Build w/ --parallel=N w.r.t parallel=N in $DEB_BUILD_OPTIONS (1 if unset);
authorPino Toscano <pino@debian.org>
Sun, 10 Nov 2024 16:26:52 +0000 (17:26 +0100)
committerPino Toscano <pino@debian.org>
Sun, 10 Nov 2024 16:26:52 +0000 (17:26 +0100)
if --parallel=N is not passed, ninja will use all the available cores by
default, which is not what should be done by default.

Gbp-Dch: Full

debian/rules

index 1f8d692f89a5adf3becfe0f101dbaeac914575d8..0d20d6d5139f378434ebebd44c0b805c762fa74b 100755 (executable)
@@ -27,6 +27,7 @@ undefine XDG_RUNTIME_DIR
 
 
 PYBUILD_BUILD_ARGS =
+PYBUILD_BUILD_ARGS += --parallel=$(or $(DEB_BUILD_OPTION_PARALLEL),$(DEB_BUILD_OPTION_PARALLEL),1)
 PYBUILD_INSTALL_ARGS = --reuse-build
 
 ## Package compilation options